package com.mes.biz.mapper;

import com.mes.common.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import com.mes.biz.domain.BizProcessUser;

import java.util.List;

/**
 * 工序人员Mapper接口
 * @author hwg
 * @email hwg
 * @date 2023-04-27
 */
public interface BizProcessUserMapper extends BaseMapper<BizProcessUser>
{

    /**
     * 批量删除工序人员
     * @param ids 需要删除的工序人员ID集合
     * @return
     */
    public int deleteBizProcessUserByIds(@Param("ids") String[] ids, @Param("DEL_FLAG_DELETE") String DEL_FLAG_DELETE);


    /**
     * 根据工序id删除
     * @param processId
     * @param delFlagDelete
     */
    void deleteByProducessId(@Param("processId") String processId, @Param("DEL_FLAG_DELETE") String delFlagDelete);

    /**
     * 批量保存工序人员
     * @param bizProcessUserList
     * @return
     */
    int saveBatch(List<BizProcessUser> bizProcessUserList);


    int findInfoByUserId(@Param("userId") String userId, @Param("processId") String processId);

    List<BizProcessUser> getListByUserId(@Param("userId") String userId);
}
